#!/bin/sh

sed -i '' 's/localhost/172.31.52.209/' xxl-api-admin/src/main/resources/xxl-api.properties

mvn clean package -Dmaven.test.skip=true

sed -i '' 's/172.31.52.209/localhost/' xxl-api-admin/src/main/resources/xxl-api.properties

docker build -t xiwc/xxl-api .

# cd ./db
# docker build -t xiwc/tms-mysql .
# cd ../

docker-compose up -d